<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Freetype OpenGL: texture_glyph_t Struct Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="style.css" rel="stylesheet" type="text/css" />



</head>
<body>
<div id="content"><!-- do not remove this div! -->

<div id="top"><!-- do not remove this div! -->

  
  <div id="titlearea">
    
    <div id="projectname">Freetype OpenGL</div>
    
    
    <div id="projectbrief">A high quality OpenGL text rendering engine for C</div>
    
  </div>
  

<!--

<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Freetype OpenGL
   &#160;<span id="projectnumber">0.1</span>
   </div>
   <div id="projectbrief">A high quality OpenGL text rendering engine for C</div>
  </td>
  
  
  
   
  
 </tr>
 </tbody>
</table>
</div>
-->


<!-- Generated by Doxygen 1.8.0 -->
<script type="text/javascript" src="dynsections.js"></script>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-attribs">Data Fields</a>  </div>
  <div class="headertitle">
<div class="title">texture_glyph_t Struct Reference<div class="ingroups"><a class="el" href="group__texture-font.html">Texture font</a></div></div>  </div>
</div><!--header-->
<div class="contents">
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>A structure that describe a glyph. </p>
<dl><dt><b>Examples: </b></dt><dd><a class="el" href="demo-atb-agg_8c-example.html#_a2">demo-atb-agg.c</a>, <a class="el" href="demo-benchmark_8c-example.html#_a9">demo-benchmark.c</a>, <a class="el" href="demo-cartoon_8c-example.html#_a6">demo-cartoon.c</a>, <a class="el" href="demo-console_8c-example.html#_a18">demo-console.c</a>, <a class="el" href="demo-display-list_8c-example.html#_a3">demo-display-list.c</a>, <a class="el" href="demo-font_8c-example.html#_a9">demo-font.c</a>, <a class="el" href="demo-makefont_8c-example.html#_a0">demo-makefont.c</a>, and <a class="el" href="demo-outline_8c-example.html#_a12">demo-outline.c</a>.</dd>
</dl></div><table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-attribs"></a>
Data Fields</h2></td></tr>
<tr class="memitem:a7d7a8ba1d85315bc4ff606ede99f1e23"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7d7a8ba1d85315bc4ff606ede99f1e23"></a>
wchar_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structtexture__glyph__t.html#a7d7a8ba1d85315bc4ff606ede99f1e23">charcode</a></td></tr>
<tr class="memdesc:a7d7a8ba1d85315bc4ff606ede99f1e23"><td class="mdescLeft">&#160;</td><td class="mdescRight">Wide character this glyph represents. <br/></td></tr>
<tr class="memitem:ade972fbd816ec6f4dbd95ddd2e03746a"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ade972fbd816ec6f4dbd95ddd2e03746a"></a>
unsigned int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structtexture__glyph__t.html#ade972fbd816ec6f4dbd95ddd2e03746a">id</a></td></tr>
<tr class="memdesc:ade972fbd816ec6f4dbd95ddd2e03746a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Glyph id (used for display lists) <br/></td></tr>
<tr class="memitem:a51379921bd46b454fc56b7d28381af03"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a51379921bd46b454fc56b7d28381af03"></a>
size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structtexture__glyph__t.html#a51379921bd46b454fc56b7d28381af03">width</a></td></tr>
<tr class="memdesc:a51379921bd46b454fc56b7d28381af03"><td class="mdescLeft">&#160;</td><td class="mdescRight">Glyph's width in pixels. <br/></td></tr>
<tr class="memitem:a7a0e2fc48006cf6815e5b1e7dae8d386"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7a0e2fc48006cf6815e5b1e7dae8d386"></a>
size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structtexture__glyph__t.html#a7a0e2fc48006cf6815e5b1e7dae8d386">height</a></td></tr>
<tr class="memdesc:a7a0e2fc48006cf6815e5b1e7dae8d386"><td class="mdescLeft">&#160;</td><td class="mdescRight">Glyph's height in pixels. <br/></td></tr>
<tr class="memitem:a1f267cdba6bd1aff244ff72792ab1a38"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1f267cdba6bd1aff244ff72792ab1a38"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structtexture__glyph__t.html#a1f267cdba6bd1aff244ff72792ab1a38">offset_x</a></td></tr>
<tr class="memdesc:a1f267cdba6bd1aff244ff72792ab1a38"><td class="mdescLeft">&#160;</td><td class="mdescRight">Glyph's left bearing expressed in integer pixels. <br/></td></tr>
<tr class="memitem:aeacd07f592dfa953f26b2e5c1863a814"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structtexture__glyph__t.html#aeacd07f592dfa953f26b2e5c1863a814">offset_y</a></td></tr>
<tr class="memdesc:aeacd07f592dfa953f26b2e5c1863a814"><td class="mdescLeft">&#160;</td><td class="mdescRight">Glyphs's top bearing expressed in integer pixels.  <a href="#aeacd07f592dfa953f26b2e5c1863a814"></a><br/></td></tr>
<tr class="memitem:aba3ece1130e9d96562a5c2ec3e60da4c"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aba3ece1130e9d96562a5c2ec3e60da4c"></a>
float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structtexture__glyph__t.html#aba3ece1130e9d96562a5c2ec3e60da4c">advance_x</a></td></tr>
<tr class="memdesc:aba3ece1130e9d96562a5c2ec3e60da4c"><td class="mdescLeft">&#160;</td><td class="mdescRight">For horizontal text layouts, this is the horizontal distance (in fractional pixels) used to increment the pen position when the glyph is drawn as part of a string of text. <br/></td></tr>
<tr class="memitem:a1e13821e9ea8332f828ebb95aeefac06"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1e13821e9ea8332f828ebb95aeefac06"></a>
float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structtexture__glyph__t.html#a1e13821e9ea8332f828ebb95aeefac06">advance_y</a></td></tr>
<tr class="memdesc:a1e13821e9ea8332f828ebb95aeefac06"><td class="mdescLeft">&#160;</td><td class="mdescRight">For vertical text layouts, this is the vertical distance (in fractional pixels) used to increment the pen position when the glyph is drawn as part of a string of text. <br/></td></tr>
<tr class="memitem:adcfb6e5a1b583f96c96d87b006667f2b"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="adcfb6e5a1b583f96c96d87b006667f2b"></a>
float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structtexture__glyph__t.html#adcfb6e5a1b583f96c96d87b006667f2b">s0</a></td></tr>
<tr class="memdesc:adcfb6e5a1b583f96c96d87b006667f2b"><td class="mdescLeft">&#160;</td><td class="mdescRight">First normalized texture coordinate (x) of top-left corner. <br/></td></tr>
<tr class="memitem:ab2fec7dd584f5cfaf14c3b8a807d5e70"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab2fec7dd584f5cfaf14c3b8a807d5e70"></a>
float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structtexture__glyph__t.html#ab2fec7dd584f5cfaf14c3b8a807d5e70">t0</a></td></tr>
<tr class="memdesc:ab2fec7dd584f5cfaf14c3b8a807d5e70"><td class="mdescLeft">&#160;</td><td class="mdescRight">Second normalized texture coordinate (y) of top-left corner. <br/></td></tr>
<tr class="memitem:a3849b83a8bb51a6fc32ce77b485d9e95"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a3849b83a8bb51a6fc32ce77b485d9e95"></a>
float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structtexture__glyph__t.html#a3849b83a8bb51a6fc32ce77b485d9e95">s1</a></td></tr>
<tr class="memdesc:a3849b83a8bb51a6fc32ce77b485d9e95"><td class="mdescLeft">&#160;</td><td class="mdescRight">First normalized texture coordinate (x) of bottom-right corner. <br/></td></tr>
<tr class="memitem:aee3ba35a29e1646df9cfaca6c0db3488"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aee3ba35a29e1646df9cfaca6c0db3488"></a>
float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structtexture__glyph__t.html#aee3ba35a29e1646df9cfaca6c0db3488">t1</a></td></tr>
<tr class="memdesc:aee3ba35a29e1646df9cfaca6c0db3488"><td class="mdescLeft">&#160;</td><td class="mdescRight">Second normalized texture coordinate (y) of bottom-right corner. <br/></td></tr>
<tr class="memitem:a2f9cdcbb00d1c632471fd4accc157528"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a2f9cdcbb00d1c632471fd4accc157528"></a>
<a class="el" href="structvector__t.html">vector_t</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structtexture__glyph__t.html#a2f9cdcbb00d1c632471fd4accc157528">kerning</a></td></tr>
<tr class="memdesc:a2f9cdcbb00d1c632471fd4accc157528"><td class="mdescLeft">&#160;</td><td class="mdescRight">A vector of kerning pairs relative to this glyph. <br/></td></tr>
<tr class="memitem:a630fa71b00f24fc94b4eb505afe95ebb"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a630fa71b00f24fc94b4eb505afe95ebb"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structtexture__glyph__t.html#a630fa71b00f24fc94b4eb505afe95ebb">outline_type</a></td></tr>
<tr class="memdesc:a630fa71b00f24fc94b4eb505afe95ebb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Glyph outline type (0 = None, 1 = line, 2 = inner, 3 = outer) <br/></td></tr>
<tr class="memitem:a4dea45315d29a64ee62e021c31163c18"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4dea45315d29a64ee62e021c31163c18"></a>
float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structtexture__glyph__t.html#a4dea45315d29a64ee62e021c31163c18">outline_thickness</a></td></tr>
<tr class="memdesc:a4dea45315d29a64ee62e021c31163c18"><td class="mdescLeft">&#160;</td><td class="mdescRight">Glyph outline thickness. <br/></td></tr>
</table>
<hr/><h2>Field Documentation</h2>
<a class="anchor" id="aeacd07f592dfa953f26b2e5c1863a814"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="structtexture__glyph__t.html#aeacd07f592dfa953f26b2e5c1863a814">texture_glyph_t::offset_y</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Glyphs's top bearing expressed in integer pixels. </p>
<p>Remember that this is the distance from the baseline to the top-most glyph scanline, upwards y coordinates being positive. </p>
<dl><dt><b>Examples: </b></dt><dd><a class="el" href="demo-atb-agg_8c-example.html#a13">demo-atb-agg.c</a>, <a class="el" href="demo-benchmark_8c-example.html#a15">demo-benchmark.c</a>, <a class="el" href="demo-cartoon_8c-example.html#a12">demo-cartoon.c</a>, <a class="el" href="demo-console_8c-example.html#a23">demo-console.c</a>, <a class="el" href="demo-display-list_8c-example.html#a15">demo-display-list.c</a>, <a class="el" href="demo-font_8c-example.html#a15">demo-font.c</a>, <a class="el" href="demo-makefont_8c-example.html#a2">demo-makefont.c</a>, and <a class="el" href="demo-outline_8c-example.html#a18">demo-outline.c</a>.</dd>
</dl>
</div>
</div>
</div><!-- contents -->
</div>
</body>
</html>
